package ncut.shumei.dao;

import ncut.shumei.entity.Elevator;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface ElevatorDao {
    List<Elevator> findAll(@Param("building") String building, 
                          @Param("status") String status);
    
    Elevator findById(Integer id);
    
    void insert(Elevator elevator);
    
    void update(Elevator elevator);
    
    void deleteById(Integer id);
    
    void updateStatus(@Param("id") Integer id, @Param("status") String status);
    
    void updateMaintenanceDate(@Param("id") Integer id, @Param("date") LocalDate date);
} 